package com.example.forum.services;

import com.example.forum.model.Article;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleService {
    @Transactional
    void create(Article article);

    List<Article> selectAll();

    List<Article> selectByBoardId(Long boardId);

    Article selectById(Long id);

    Article selectDetailById(Long id);

    void modify(Long id,String title,String content);

    void thumbsUpById(Long id);

    @Transactional
    void deleteById(Long id);

    void addOneReplyCountById(Long id);

    List<Article> selectAllByUserId(Long userId);
}
